/**
 * 
 * @param {*} path target path
 * @param {*} routes this is alls over is current routes
 * @returns 
 */
export const check_404 = (path,routes) =>{
   return   routes.some((item,index)=>{
            if (item.children && item.children.length>0) return  check_404(path,item.children)          
            return (item.path == path)
      })
}